package cn.yunhe.service;

import cn.yunhe.dao.UserDao;
import cn.yunhe.entity.User;

public class UserService implements UserDao {

    @Override
    public int login(User user) {
        if ("admin".equals(user.getUsername()) && "123".equals(user.getPassword())) {
            return 1;
        }
        return 0;
    }
}
